package com.platform.dao.shop;

import com.platform.dao.BaseDao;
import com.platform.entity.shop.GoodsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * Dao
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2017-08-21 21:19:49
 */
@Mapper
public interface GoodsDao extends BaseDao<GoodsEntity> {
    Integer queryMaxId();
    Integer updatePrice(@Param("id") Integer id, @Param("discount") Float discount,@Param("retailPrice") BigDecimal retailPrice);
    GoodsEntity selectGoodsById(@Param("id") Integer id);
}
